package com.itgaoshu.springboot_day01.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * ClassName: User <br/>
 * Description: <br/>
 * date: 2021/6/30 16:21<br/>
 *
 * @author lovegg<br />
 * @since JDK 1.8
 */

    @Data //@Data注解为实体类提供getter、setter方法和toString()方法
    @TableName("fuser")
    public class User implements Serializable {
        //@TableField("userId")
        @TableId(value = "user_Id")
    private int userId;//用户主键
    @TableField("user_Name")
    private String userName;//用户名称
    @TableField("real_Name")
    private String realName;//用户真实姓名
    
}
